package com.hysf.jdkproxy;


public class TestProxy {
	public static void main(String[] args) {
		System.setProperty("jdk.proxy.ProxyGenerator.saveGeneratedFiles","true");
		OrderBiz orderBiz = new OrderBizImpl();
		MyAdviceInvocationHandler handler = new MyAdviceInvocationHandler(orderBiz);
		OrderBiz proxy = (OrderBiz) handler.getProxy();
		proxy.addOrder();
	}
}
